package composite.gk1;

/**
 * 普通叶子节点
 */
public class CommonCource extends GkAbstractCource{
    private String name;
    private String score;

    public CommonCource(String name, String score) {
        this.name = name;
        this.score = score;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public void info() {
        System.out.println(this.toString());
    }

    @Override
    public String toString() {
        return "CommonCource{" +
                "name='" + name + '\'' +
                ", score='" + score + '\'' +
                '}';
    }
}
